{% extends "codeflow/base.html" %}
{% block content %}
<div class="section">
  <h2>Login</h2>
  <form method="post">
    <table>
      <tr>
	<td colspan="2">
	  {% if form.username.errors %}
	  <span style="color: red;">
            {{ form.username.errors|join:", " }}
	  </span><br/>
	  {% endif %}
	</td>
      </tr>
      <tr>
	<td>
	  <label for="id_username">
	    Username:
	  </label>
	</td>
	<td>
	  {{ form.username }}
	</td>
      </tr>
      <tr>
	<td colspan="2">
	  {% if form.password.errors %}
	  <span style="color: red;">
	    {{ form.password.errors|join:", " }}
	  </span><br/>
	  {% endif %}
	</td>
      </tr>
      <tr>
	<td>
	  <label for="id_password">
	    Password:
	  </label>
	</td>
	<td>
	  {{ form.password }}
	</td>
      </tr>
      <tr>
	<td colspan="2">
	  <input type="submit" value="Login"/>
	</td>
      </tr>
    </table>
  </form>
</div>
{% endblock %}
